import request from "@/utils/request";


export const getDocTree = (ebookId) =>{
    return request.post('/doc/findEbookVoTree/'+ebookId)
}

export const saveDocAndContent = (docContentPo)=>{
    return request.post('/doc/saveDocAndContent',docContentPo)
}

export const getDocAndContentById = (id)=>{
    return request.get('/doc/findDocContentVo/'+id)
}

export const deleteDocAndContentById = (deleteDocAndContentPo) => {
    return request.post('/doc/deleteDocAndContentById',deleteDocAndContentPo)
    
}

export const doLike = (ebookId,docId,username)=>{
    return request.get('/doc/doLike?ebookId='+ebookId+'&docId='+docId+'&username='+username)
}